package io.bitmax.exchange.base.http;

import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.SSLSession;

import io.bitmax.library.utils.HttpLog;

/**
 * Created by gongdongyang on 2018/9/25.
 */

public class UnSafeHostnameVerifier implements HostnameVerifier {
    private String host;

    public UnSafeHostnameVerifier(String host) {
        this.host = host;
        HttpLog.i("###############　UnSafeHostnameVerifier " + host);
    }

    @Override
    public boolean verify(String hostname, SSLSession session) {
        HttpLog.i("############### verify " + hostname + " " + this.host);
        /*if (this.host == null || "".equals(this.host) || !this.host.contains(hostname))
            return false;*/
        return true;
    }

}
